package cn.wolfcode.luowowo.article.domain;

import cn.wolfcode.luowowo.common.domain.BaseDomain;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Setter@Getter
public class StrategyDetail extends BaseDomain {
    public static final Integer STATE_DISPLAY = 0; //发布
    public static final Integer STATE_UNDISPLAY = 1; //下架
    //標題
    private String title;
    //攻略名称
    private String strategyName;
    //副标题
    private String subTitle;
    //摘要 就是内容表示
    private String summary;
    //封面
    private String coverUrl;
    //创建时间
    private Date createTime;
    //阅读数
    private Integer viewnum = 0;
    //评论数
    private Integer replynum = 0;
    //收藏数
    private Integer favornum = 0;
    //分享数
    private Integer sharenum = 0;
    //点赞数
    private Integer thumbsupnum = 0;

    private Integer state = STATE_DISPLAY;
    //目的地
    private Destination dest;
    //主题
    private StrategyTheme theme;
    //分类
    private StrategyCatalog catalog;
    //内容
    private StrategyContent strategyContent;

    public String getStateName() {
        return state == STATE_DISPLAY ? "发布" : "下架";
    }
}